import React from 'react';
import {connect} from 'dva';
import styles from './index.less';
/**
 * 当前活动人员
 */
class cCurrentOwner extends React.Component {
  constructor(props) {
    super(props);

    this.state = {

    }
  }
  render(){
    return (
      <div className={styles.baseList}>
        <div className={`${styles.item} ${styles.blockItem}`}>
          <div className={styles.des}>
            {this.props.detail.mobileAllCurrentCaseOwner && this.props.detail.mobileAllCurrentCaseOwner.map(item => {
              return (
                <span key={item.employeeNo}>{item.employeeNo} {item.preferredName};</span>
              )
            })
            }
          </div>
        </div>
      </div>
    )
  }
}


function mapStateToProps(state) {
  return {
    ...state.detail
  }
}
export default connect(mapStateToProps)(cCurrentOwner);
